package com.marisfrolg.controller;

//import org.springframework.security.access.prepost.PreAuthorize;
import com.marisfrolg.scan.annotation.MarisfrolgMapping;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:订单控制器
 * @package com.marisfrolg.controller
 * @who MiaoMiao "Sprout" BI
 * @date 2023-01-01 11:41:04
 */
@RestController
@RequestMapping(value = "/order",name = "直购订单")
public class OrderController {
    @MarisfrolgMapping(value = "/getOrder",description = "查询订单")
    public String getOrder() {
        return "hello order";
    }


    @MarisfrolgMapping(value = "/createOrder",description = "创建订单")
//    @PreAuthorize("hasAnyAuthority('admin','aa')")
    public String createOrder() {
        return "ok";
    }

}
